package com.javaweb.service;




import com.javaweb.common.ResponseResult;
import com.javaweb.model.Article;
import com.javaweb.service.dto.ArticleConditionDto;
import com.javaweb.service.dto.ArticleDto;
import com.javaweb.service.dto.ArticleUpdateDto;
import com.javaweb.service.dto.PageResult;

import java.util.List;

public interface ArticleService {

    public PageResult queryByArticleCondition(ArticleConditionDto articleCond, Integer pageNum, Integer pageSize);

    public int publishArticle(String articelId, String userId) ;

    public Article queryById(String articleId);

    public Article insertArticle(Article article);

    public int publishArticlesByBatch(String[] articleIds, String userId);

    public int updateArticle(ArticleUpdateDto articledto );

    public int removeArticle(String articleId, String userId);

    // 根据查询条件获取文章列表
    public List<Article> listArticles(ArticleConditionDto articleCond);

    public void add(ArticleDto articleDto);

    public ResponseResult update(ArticleUpdateDto articleUpdateDto);

    public ResponseResult publish(String articleId);

    List<Article> findArticles(ArticleConditionDto articleCond);

    void addArticle(ArticleDto articleDto);

    void publishArticle(String articleId);
}
